﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;


namespace ConsoleApplication2.Models.Mapping
{
    public class roomsMap  : EntityTypeConfiguration<rooms>
    {
            public roomsMap()
            {
                this.HasKey(t => t.id);

                // Table & Column Mappings
                this.ToTable("rooms");
                this.Property(t => t.id).HasColumnName("id");
                this.Property(t => t.name).HasColumnName("name");
                this.Property(t => t.notes).HasColumnName("notes");
            }
            // Primary Key

    }
}